package com.yoyo.yyadsdk.bean.dao;

import com.yoyo.yyadsdk.config.PullFeature;

import org.greenrobot.greendao.annotation.Entity;
import org.greenrobot.greendao.annotation.Generated;
import org.greenrobot.greendao.annotation.Id;
import org.greenrobot.greendao.annotation.Unique;

@Entity
public class LocalPullEntity {

    @Id(autoincrement = true)
    private Long _id;
    //拉活任务id
    @Unique
    private int pullId;
    /**
     * 拉活类型 {@link com.yoyo.yyadsdk.config.PullFeature.PullTypeFlags}
     */
    private int type;
    //监控链接
    private String action;
    //目标应用
    private String tPkg;
    //上次活跃时间
    private long pullTime;
    //已拉活次数
    private int pullTimes;
    //拉活周期内次数
    private int pullCount;

    @Generated(hash = 86915560)
    public LocalPullEntity(Long _id, int pullId, int type, String action,
                           String tPkg, long pullTime, int pullTimes, int pullCount) {
        this._id = _id;
        this.pullId = pullId;
        this.type = type;
        this.action = action;
        this.tPkg = tPkg;
        this.pullTime = pullTime;
        this.pullTimes = pullTimes;
        this.pullCount = pullCount;
    }

    @Generated(hash = 1249412567)
    public LocalPullEntity() {
    }

    public Long get_id() {
        return this._id;
    }

    public void set_id(Long _id) {
        this._id = _id;
    }

    public int getPullId() {
        return this.pullId;
    }

    public void setPullId(int pullId) {
        this.pullId = pullId;
    }

    public int getType() {
        return this.type;
    }

    public void setType(int type) {
        this.type = type;
    }

    public String getAction() {
        return this.action;
    }

    public void setAction(String action) {
        this.action = action;
    }

    public String getTPkg() {
        return this.tPkg;
    }

    public void setTPkg(String tPkg) {
        this.tPkg = tPkg;
    }

    public long getPullTime() {
        return this.pullTime;
    }

    public void setPullTime(long pullTime) {
        this.pullTime = pullTime;
    }

    public int getPullTimes() {
        return this.pullTimes;
    }

    public void setPullTimes(int pullTimes) {
        this.pullTimes = pullTimes;
    }

    public int getPullCount() {
        return this.pullCount;
    }

    public void setPullCount(int pullCount) {
        this.pullCount = pullCount;
    }
}
